remove obsolete msvc workarounds. (#278)
authortsteven4 <tsteven4@users.noreply.github.com>
Sat, 1 Dec 2018 15:03:37 +0000 (08:03 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Dec 2018 15:03:37 +0000 (08:03 -0700)
msvc 2012 and earlier are not supported.
They didn't support c++14 anyway which we currently require.

defs.h
v900.cc

diff --git a/defs.h b/defs.h
index 068faf289c1404cbdbc033ba14154feaf01f0269..b0df8e74357ffe0570b7c261fc7f881cb4483687 100644 (file)
--- a/defs.h
+++ b/defs.h
 #  define strdup _strdup
 #endif
 
-/* Workaround for lack of va_copy in Visual Studio 2012 and earlier */
-#if __WIN32__
-#  if _MSC_VER
-#    if _MSC_VER < 1700
-#      define va_copy(dest, src) ((dest) = (src))
-#    endif
-#  endif
-#endif
-
 /* Turn off numeric conversion warning */
 #if __WIN32__
 #  if _MSC_VER
@@ -1081,14 +1072,6 @@ QString rot13(const QString& s);
 
 signed int si_round(double d);
 
-#if _MSC_VER
-//These functions are not included in the MS pre C99 implementation, use internal implementation
-//This asssumes that non-_MSC_VER includes math.h (all should include defs.h)
-#define round si_round
-#define lround si_round
-#endif
-
-
 /*
  * Protypes for Endianness helpers.
  */
diff --git a/v900.cc b/v900.cc
index 0b35ba1d1cc256377db873673d2e8296de7b1ba8..775b9633c0c4dd417e557094242b325304abe003 100644 (file)
--- a/v900.cc
+++ b/v900.cc
@@ -76,10 +76,6 @@ for a little more info, see structures:
 #include <cstdio>
 #include <cstdlib> // atoi
 
-#if _MSC_VER
-#define __func__ __FUNCTION__
-#endif
-
 /* the start of each record (line) is common to both advanced and basic mode.
    it will be parsed by a single common code. hence, it will be easier and clearer
    to have a common structure for it.